@import './assets/styles/index.less';
@import '~@jxstjh/ant-design-vue/dist/antd.less';
@import './compact.theme.less';
@import "~@/utils/utils.less";


html,
body,
#app,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout.layout-basic {
  height: 100vh;
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}

// 数据列表 操作
.table-operator {
  margin-bottom: 18px;

  button {
    margin-right: 8px;
  }
}

// 数据列表 搜索条件
.table-page-search-wrapper {

  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      >.ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }

      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;

        >span {
          display: block;
        }
      }
    }
  }
}

.ant-pro-basicLayout-content {
  margin: 0;
}

.ant-pro-page-header-wrap-children-content {
  margin: @padding-md @padding-md 0;
}

// grid-layout组件相关
.vue-grid-item {
  display: flex;
  position: relative;
  pointer-events: auto;
  touch-action: none;
  // background-color: #fff;
  // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  // border-radius: 6px;
  overflow: visible;

  &.vue-grid-placeholder {
    background-color: @primary-color  !important;
  }

  >:first-child {
    flex: 1;
  }
}

.card-actions {
  position: absolute;
  color: #fff;
  transition: all .3s;

  &:hover {
    transform: scale(1.1);
  }

  &.close {
    right: 4px;
    top: 2px;
    cursor: pointer;
    padding: 2px;
    background-color: @error-color;
    border-radius: 50%;
    box-shadow: @box-shadow-base;
  }

  &.drag {
    left: 4px;
    top: 2px;
    padding: 2px;
    background-color: @success-color;
    border-radius: 50%;
    box-shadow: @box-shadow-base;
    cursor: move;
  }
}

// 门户按钮公共样式
.portal-btn {
  border-color: @primary-color;
  color: @primary-color;
  border-radius: @border-radius-circle;
}

.triangle-btn {
  border-color: @primary-color  !important;
  color: @primary-color  !important;
  border-radius: 0 !important;
  position: relative !important;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  padding: 0 !important;

  &:hover {
    border-left-color: transparent !important;
    border-right-color: transparent !important;
  }

  .triangle-btn-text {
    display: inline-block;
    width: 100%;
    height: 100%;
    position: relative;
  }

  .triangle-btn-prefix {
    position: absolute;
    width: 0;
    height: 0;
    bottom: -1px;
    left: -14px;
    border-top: 14px solid @primary-color;
    border-left: 14px solid transparent;

    &::before {
      content: '';
      position: absolute;
      width: 14px;
      height: 10px;
      background-color: #fff;
      border-top: 1px solid @primary-color;
      border-left: 1px solid @primary-color;
      top: -24px;
      left: -14px;
    }

    &::after {
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      top: -15px;
      left: -14px;
      border-top: 15px solid #fff;
      border-left: 15px solid transparent;
    }
  }

  .triangle-btn-suffix {
    position: absolute;
    width: 0;
    height: 0;
    top: -1px;
    right: -14px;
    border-bottom: 14px solid @primary-color;
    border-right: 14px solid transparent;

    &::before {
      content: '';
      position: absolute;
      width: 14px;
      height: 10px;
      background-color: #fff;
      border-bottom: 1px solid @primary-color;
      border-right: 1px solid @primary-color;
      bottom: -24px;
      right: -14px;
    }

    &::after {
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      top: 0px;
      right: -14px;
      border-bottom: 15px solid #fff;
      border-right: 15px solid transparent;
    }
  }

  .triangle-btn-prefix-mirror {
    position: absolute;
    width: 0;
    height: 0;
    top: -1px;
    left: -14px;
    border-bottom: 14px solid @primary-color;
    border-left: 14px solid transparent;

    &::before {
      content: '';
      position: absolute;
      width: 14px;
      height: 10px;
      background-color: #fff;
      border-bottom: 1px solid @primary-color;
      border-left: 1px solid @primary-color;
      bottom: -24px;
      left: -14px;
    }

    &::after {
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      bottom: -15px;
      left: -14px;
      border-bottom: 15px solid #fff;
      border-left: 15px solid transparent;
    }
  }

  .triangle-btn-suffix-mirror {
    position: absolute;
    width: 0;
    height: 0;
    bottom: -1px;
    right: -14px;
    border-top: 14px solid @primary-color;
    border-right: 14px solid transparent;

    &::before {
      content: '';
      position: absolute;
      width: 14px;
      height: 10px;
      background-color: #fff;
      border-top: 1px solid #1890ff;
      border-right: 1px solid #1890ff;
      bottom: 14px;
      right: -14px;
    }

    &::after {
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      top: -14.5px;
      right: -14px;
      border-top: 15px solid #fff;
      border-right: 15px solid transparent;
    }
  }
}

// 门户header
.header-svg-stop-color1 {
  stop-color: @primary-color;
}

.header-svg-stop-color2 {
  stop-color: @primary-color;
}

.header-svg-stop-color3 {
  stop-color: @primary-color;
}

// 滚动条全局样式
.ps {
  height: 100%;
}

// arcgis
.esri-view {
  .esri-view-surface--inset-outline:focus {
    &::after {
      outline-color: @primary-color  !important;
    }
  }
}